package util;

import java.math.BigDecimal;
import java.util.List;
import vo.MoneyDoubleBean;


public class MoneyCalc {
	public static BigDecimal moneyTotal(List<MoneyDoubleBean> list){
		BigDecimal money = new BigDecimal(0.00).setScale(2, BigDecimal.ROUND_HALF_UP);
		if(list!=null){
			for(MoneyDoubleBean t : list){
				money = money.add(BigDecimal.valueOf(t.getD()));
			}
		}
		return money;
	}
}
